CentOS 7
Sponsored Link

Zabbix 3.4 : Add Monitoring Target(CentOS)
2017/08/27
 
Add Monitoring Target Host. Add a CentOS 7 server as an example on here.
[1]
on this example, It based on that SELinux is Permissive or Disabled.
[2] Install Zabbix Agent on the server you'd like to add for monitoring target.
[root@node01 ~]#
yum -y install http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm

[root@node01 ~]#
yum -y install zabbix-agent
[root@node01 ~]#
vi /etc/zabbix/zabbix_agentd.conf
# line 97: specify Zabbix server

Server=
10.0.0.30
# line 138: specify Zabbix server

ServerActive=
10.0.0.30
# line 149: change to the own hostname

Hostname=
node01.srv.world
[root@node01 ~]#
systemctl start zabbix-agent

[root@node01 ~]#
systemctl enable zabbix-agent

[3] If Firewalld is running allow Zabbix related ports.
[root@dlp ~]#
firewall-cmd --add-port=10050/tcp --permanent

success
[root@dlp ~]#
firewall-cmd --reload

success
[4] Login to Zabbix admin site with admin user and move to [Configuration] - [Hosts] tab, and then click [Create Host] button.
[5] Input a hostname for [Hostname] field, input any name you like for [Visible name] field, select a group or add a new group for [Groups] field, input IP address and DNS name for [Agent interfaces] field. For other fields are optional. If it's OK all, move to [Templates] tab.
[6] Click [Select] button.
[7] Select [Template OS Linux] and click [Select] button.
[8] Click [Add] link.
[9] Confirm the template added and click [Add] button.
[10] New monitoring target is added.
[11] After few minutes later, monitoring data is collected like follows.
 
Tweet